package com.org.xdq;

public class Funner {
    public void fun() {
        Thread t1 = new One("One");
        t1.start();
        for(int i =201;i<=300;i++){
            System.out.println(Thread.currentThread().getName()+":--->"+i);
//            try {
//                Thread.sleep(50);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
            //Thread.yield();

            if(i==220){
                try {
                    t1.join();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
